package web.base.service;

import java.util.List;

import web.base.pojo.po.Role;
import web.base.pojo.vo.RoleCustom;
import web.base.pojo.vo.RoleQueryVo;

public interface RoleService {
	// 查询职位总数
	public int findRoleCount() throws Exception;

	// 查询所有职位信息
	public List<RoleCustom> findRoleList(RoleQueryVo roleQueryVo) throws Exception;
	//准备数据，职位名称
	public List<RoleCustom> findRoleTree() throws Exception;
	//添加职位
	public void insertRole(RoleCustom roleCustom) throws Exception;
	//删除职位
	public void deleteRole(String id) throws Exception;
	//根据id查询职位信息
	public Role selectRoleById(String id) throws Exception;
	//修改职位信息
	public void updateRole(RoleCustom roleCustom,String id) throws Exception;
}
